<!doctype html>
<html lang="zh-CN">

<head>
    <!-- 必须的 meta 标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="Shortcut Icon" href="/static/favicon.ico" type="image/x-icon" />

    <!-- Bootstrap 的 CSS 文件 -->
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/index.css">
    <link rel="stylesheet" href="/static/css/editormd.css">
    <title>Markdown在线编辑器</title>
</head>

<body>
    <div class="container " id="article-data" >
        <div class="row">
            <div class="col" id="article-title-div">
                <h1>文章标题</h1>
            </div>
        </div>
       
        <div class="row">
            <div class="col" id="article-info-div">
                <script type="text/x-handlebars-template" id="template-article-info">
                    <div class="row ">
                        <div class="col article-div" id={{artid}} data-created={{created}} data-title={{title}}>
                        </div>
                    </div>
                </script>  
            </div>
        </div>
    
     </div>

            <script src="/static/js/jquery.min.js"></script>
            <script src="/static/js/handlebars.js"></script>
            <script src="/static/js/index.js"></script>

            <script>
                $(function () {
                    var pathnames = window.location.pathname.split('/')
                    if (pathnames.length < 3) {
                        console.log("invalid url")
                        return;
                    }

                    var article_id = pathnames[2]
                    GetArticleDetail(article_id)
                    // console.log('window.location.pathname is ', window.location.pathname.split('/'))
                });
            </script>
</body>

</html>